import request from '@/utils/request'
import Qs from 'qs'
//设备电量列表
export function getElectricQuantityList (params) {
  return request({
    params,
    url: '/back/electricQuantity/getBackElectricQuantityList'
  })
}

//设备每月电量
export function getBackMonthList (params) {
  return request({
    params,
    url: '/back/electricQuantity/getBackMonthList'
  })
}
//设备总月租
export function getEstateMonthlyRent (params) {
  return request({
    params,
    url: '/back/index/getEstateMonthlyRent'
  })
}


//设备总电量
export function getCountElectricQuantity (params) {
  return request({
    params,
    url: '/back/electricQuantity/getCountElectricQuantity'
  })
}

//查询所有设备电量
export function sendElectricQuantity (data) {
  return request({
    method: 'post',
    data:Qs.stringify(data),
    url: '/back/electricQuantity/sendElectricQuantity',
    headers:{'content-type': 'application/x-www-form-urlencoded'}
  })
}


// //设备详情
// export function getEquipmentData (data) {
//   return request({
//     data:Qs.stringify(data),
//     method:'post',
//     url: '/back/index/getEquipmentData',
// headers:{'content-type': 'application/x-www-form-urlencoded'}
//   })
// }

